<div class="page-content" >
				<div class="panel panel-default">
								<div class="panel-heading"> <strong>课程管理</strong> </div>
								<div class="panel-body">
												<div id="toolbar" style="width: 100%;">
																<form id="filter" method="get"  class="form-horizontal">
																				<div class="form-group">
																								<div class="col-sm-3">
																												<input type="text" name="kw" value="<{$kw}>" class="form-control" placeholder="课程管理">
																								</div>
																								<div class="col-sm-3">
																												<select name="subject_class_id" class="form-control">
																																<option value="">按班级查询</option>
																																<volist name="subject_class" id="vo"> <option   
																																				<if condition="$subject_class_id eq $vo['subject_class']">selected="selected"</if>
																																				 value="<{$vo.id}>"><{$vo.name}>
																																				</option>
																																</volist>
																												</select>
																								</div>
																								<div class="col-sm-4" style="float:right; width:auto">
																												<input type="submit" class="btn btn-primary pull-right" value="筛选">
																								</div>
																				</div>
																				<div class="form-group">
																								<div class="col-sm-8"> <a href="<{:U('Subject/add_subject')}>" class="btn btn-default"> <i class="fa fa-plus"></i> 添加课程 </a> </div>
																				</div>
																</form>
												</div>
												<div class="bootstrap-table">
																<div class="fixed-table-container" style="padding-bottom: 0px;">
																				<div class="fixed-table-body">
																								<table id="data-table" class="table">
																												<thead>
																																<tr>
																																				<th style="" data-field="id"><div class="th-inner sortable both desc">ID</div>
																																								<div class="fht-cell"></div></th>
																																				<th style="" data-field="name"><div class="th-inner ">课程名</div>
																																								<div class="fht-cell"></div></th>
																																				<th style="" data-field="name"><div class="th-inner ">班级</div>
																																								<div class="fht-cell"></div></th>
																																				<th style="" data-field="created_at"><div class="th-inner ">价格</div>
																																								<div class="fht-cell"></div></th>
																																				<!--		<th style="" data-field="created_at"><div class="th-inner ">添加时间</div><div class="fht-cell"></div></th>-->
																																				<th style="" data-field="created_at"><div class="th-inner ">排序</div>
																																								<div class="fht-cell"></div></th>
																																				<th style="" data-field="id"><div class="th-inner ">操作</div>
																																								<div class="fht-cell"></div></th>
																																</tr>
																												</thead>
																												<tbody>
																																<volist name="data" id="vo">
																																				<tr data-index="0" class="parentSubject">
																																								<td style=""><{$vo.subjectid}></td>
																																								<td style="width:300px"><{$vo.subject}></td>
																																								<td style=""><{$vo.subject_class_name}></td>
																																								<td style=""><{$vo.price}></td>
																																								<!--	<td style=""><{$vo.add_time}></td>--> 
																																								<!--	<td style=""><{$vo['status']==1?"启用":"禁用"}></td>-->
																																								<td style=""><input type="text" key="subjectid" placeholder="顺序" onblur="set_order(this)" table="edu_subject" id="<{$vo.subjectid}>" value="<{$vo.order_by}>" autocomplete="off">
																																								<td style=""><a href="<{:U('Subject/add_subject',array('id'=>$vo['subjectid']))}>" class="btn btn-primary btn-xs">编辑</a>&nbsp;&nbsp; 
																																												
																																												<!--<a href="<{:U('Subject/status_subject',array('id'=>$vo['subjectid']))}>" class="btn btn-primary btn-xs delete-this"><{$vo['status']==1?"禁用":"启用"}></a>
			--> 
																																												<a onclick="return confirm('确认删除？')"  href="<{:U('Subject/del_subject',array('id'=>$vo['subjectid']))}>" class="btn btn-primary btn-xs delete-this">删除</a>
																																												<if condition="!$vo['childs']"> &nbsp;&nbsp; <a href="<{:U('Subject/section',array('subjectid'=>$vo['subjectid']))}>" class="btn btn-primary btn-xs">章节</a> <a href="<{:U('Attach/index',array('class_id'=>$vo['subjectid']))}>" class="btn btn-primary btn-xs">考前准备</a> </if>
																																												&nbsp;&nbsp;<a data-type="modal"  href="<{:addons_url('Blocks/Index/add',array('blocks_name'=>'SubjectSlide'.$vo['subjectid']))}>" class="btn btn-primary btn-xs">广告</a>
																																												&nbsp;&nbsp;<a data-type="modal"  href="<{:U('Subject/settikuNav',array('subjectid'=>$vo['subjectid']))}>" class="btn btn-primary btn-xs" title="设置题型">题型</a>
																																												</td>
																																				</tr>
																																				<volist name="vo['childs']" id="vo1">
																																								<tr data-index="0" class="childSubject" >
																																												<td style=""></td>
																																												<td style="width:300px"><{$vo1.subject}></td>
																																												<td style=""></td>
																																												<td style=""></td>
																																												<td style=""><input type="text" key="subjectid" placeholder="顺序" onblur="set_order(this)" table="edu_subject" id="<{$vo1.subjectid}>" value="<{$vo1.order_by}>" autocomplete="off"></td>
																																												<td style=""><a href="<{:U('Subject/section',array('subjectid'=>$vo1['subjectid']))}>" class="btn btn-primary btn-xs">章节</a>&nbsp;&nbsp; <a href="<{:U('Attach/index',array('class_id'=>$vo1['subjectid']))}>" class="btn btn-primary btn-xs">考前准备</a>	&nbsp;&nbsp;<a data-type="modal" title="设置题型"  href="<{:U('Subject/settikuNav',array('subjectid'=>$vo['subjectid']))}>" class="btn btn-primary btn-xs">题型</a></td>
																																								</tr>
																																				</volist>
																																</volist>
																												</tbody>
																								</table>
																				</div>
																				<include file="./Apps/BoxAdmin/View/Ace/Public/pager.html" /> </div>
												</div>
												<div class="clearfix"></div>
								</div>
				</div>
</div>
<style>
		 
		.childSubject td{ background:#EEE}
		</style>